<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <#include "../common.ftl">
</head>
<body>
<form class="layui-form" style="width:80%;">
    <input type="hidden" name="projectId" value="${(project.id)!}">
    <div class="layui-form-item layui-row">
        <div class="layui-col-xs12">
            <label class="layui-form-label">项目编号</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input"
                       name="projectNo" id="projectNo" lay-verify="required" value="${(project.projectNo)!}"
                       placeholder="项目名称">
            </div>
        </div>
    </div>

    <div class="layui-form-item layui-row ">
        <div class="layui-col-xs12">
            <label class="layui-form-label">供应商</label>
            <div class="layui-input-block">
                <select name="supplierId" id="supplierId" lay-verify="required" lay-filter="supplier">
                    <option value="">请选择供应商</option>
                </select>
            </div>
        </div>
    </div>

    <div class="layui-form-item layui-row">
        <div class="layui-col-xs12">
            <label class="layui-form-label">物料编码</label>
            <div class="layui-input-block">
                <select name="materialNo" id="materialNo" lay-verify="required" lay-filter="material">
                    <option value="">请选择物料编码</option>
                </select>
            </div>
        </div>
    </div>

    <input type="hidden"  id="materialName" name="materialName" value="">
    <#--    <div class="layui-form-item layui-row ">-->
    <#--        <div class="layui-col-xs12">-->
    <#--            <label class="layui-form-label">物料名称</label>-->
    <#--            <div class="layui-input-block">-->
    <#--                <input type="text" class="layui-input"-->
    <#--                       name="materialName" id="materialName" lay-verify="required"-->
    <#--                       placeholder="请输入物料名称">-->
    <#--            </div>-->
    <#--        </div>-->
    <#--    </div>-->

    <div class="layui-form-item layui-row ">
        <div class="layui-col-xs12">
            <label class="layui-form-label">物料数量</label>
            <div class="layui-input-block">
                <input type="number" class="layui-input"
                       name="purchaseCount" id="purchaseCount" lay-verify="required"
                       placeholder="请输入物料数量">
            </div>
        </div>
    </div>

    <div class="layui-form-item layui-row ">
        <div class="layui-col-xs12">
            <label class="layui-form-label">预估金额</label>
            <div class="layui-input-block">
                <input type="number" class="layui-input"
                       name="purchasePrice" id="purchasePrice" lay-verify="required"
                       placeholder="请输入物料数量">
            </div>
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">类型</label>
        <div class="layui-input-block">
            <select name="orderType" lay-verify="required">
                <option value="">请选择单据类型</option>
                <option value="0">原材料购买</option>
                <option value="1">原材料补买</option>
            </select>
        </div>
    </div>
    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit=""
                    lay-filter="addPurchaseOrder">确认
            </button>
            <button class="layui-btn layui-btn-lg layui-btn-normal" id="closeBtn">取消</button>
        </div>
    </div>
</form>

<script type="text/javascript" src="${ctx}/layuimini/js/supplier/addPurchaseOrder.js"></script>

</body>
</html>

